public class test2 {
    //第十四届蓝桥杯大赛软件赛省赛 C/C++ 大学 A 组 B有奖问答
    public static void main(String[] args) {
        fun1();
        fun2();

    }

    private static void fun2() {
        int right = 0;
        int wrong = 0;
        int sum = 0;
        int count = 0;
        boolean flag = true;
        for(int i =1;i<=30;i++){

        }
    }

    private static void fun1(){
        int right = 0;
        int wrong = 0;
        int sum = 0;
        int count = 0;
        for(right = 0;right<=30;right++){

            for(wrong = 0;wrong<=30;wrong++){
                sum = right*10-wrong*10;
                if(right+wrong>=30 || sum>=100 ){
                    break;
                }
                if(sum==70){
                    System.out.println(right+" "+wrong);
                    count++;
                    sum = 0;
                }
            }
        }
        System.out.println(count);
    }
}
